﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Noria.Frameworks.Eva.Engine
{
    class GenFactory
    {
        public static IGenerator CreateGenerator(SimpleConfiguration config)
        {
            switch (config.TargetType)
            {
                case SimpleConfiguration.Target.Single:
                    return new SingleGenerator(config);
                case SimpleConfiguration.Target.Project:
                    return new ProjectGenerator(config);
                case SimpleConfiguration.Target.Solution:
                default:
                    throw new NotSupportedException();
            }
        }
    }
}
